package teacher;

import basic.ClientConsole;

import com.sun.rowset.CachedRowSetImpl;

import flexibility.userData;

public class getFile {

	public CachedRowSetImpl getFile(ClientConsole teacherConnection,
			CachedRowSetImpl rs, userData T_Data, String assID, String sID,int i) {
		T_Data.deleteAll();
		if (i==0)
		{
		T_Data.addData(25);
		T_Data.addData(1);
		T_Data.addData(assID);
		T_Data.addData(sID);
		}
		else{
			T_Data.addData(26);
			T_Data.addData(1);
			T_Data.addData(assID);
			T_Data.addData(sID);	
		}
		teacherConnection.acceptMsg(T_Data);
	    rs = teacherConnection.getResults();
	    
		return rs;
	}

}
